package timer;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

public class FixTimerTestMain {
    private static ScheduledExecutorService scheduExec = Executors.newScheduledThreadPool(2);

    public static void main(String[] args) {

        /*返回josn对象*/


//        scheduExec.scheduleAtFixedRate(new Runnable() {
//            @Override
//            public void run() {
//                System.out.println("hello");
//                try {
//                    Thread.sleep(1500);
//                    throw new Exception();
//                } catch (InterruptedException e) {
//                    e.printStackTrace();
//                }
//            }
//        }, 0, 1000, TimeUnit.MILLISECONDS);
    }
}
